/* 固定资产管理系统 - 自定义Admin样式 */

/* 全局样式 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #2980b9;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
}

/* 主要容器美化 */
.content-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* 卡片样式优化 */
.card {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* 表格美化 */
.table {
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 15px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: scale(1.01);
}

.table tbody td {
    vertical-align: middle;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* 按钮美化 */
.btn {
    border-radius: 25px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 8px 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--info-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--info-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #2ecc71, var(--success-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #e67e22);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #c0392b);
    border: none;
}

/* 搜索框美化 */
.form-control {
    border-radius: 20px;
    border: 2px solid rgba(52, 152, 219, 0.2);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
    transform: scale(1.02);
}

/* 状态标签美化 */
.badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

/* 导航栏美化 */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color)) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

/* 侧边栏美化 */
.main-sidebar {
    background: linear-gradient(180deg, var(--primary-color), var(--dark-color)) !important;
}

.sidebar-menu > li > a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.sidebar-menu > li > a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin: 2px 10px;
}

/* 仪表板小部件 */
.dashboard-widget {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.dashboard-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.widget-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--secondary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.widget-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* 分页美化 */
.pagination {
    margin: 20px 0;
}

.page-link {
    border-radius: 50%;
    margin: 0 5px;
    border: none;
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--secondary-color), var(--info-color));
    border-color: var(--secondary-color);
}

/* 筛选器美化 */
.filter-options {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 模态框美化 */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card {
        margin: 10px;
    }
    
    .table-responsive {
        border-radius: 10px;
    }
    
    .btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .widget-value {
        font-size: 2rem;
    }
}

/* 动画效果 */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideInUp 0.6s ease-out;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 成功消息样式 */
.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid var(--success-color);
    border-radius: 10px;
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 1px solid var(--danger-color);
    border-radius: 10px;
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid var(--warning-color);
    border-radius: 10px;
    color: #856404;
}

/* 自定义图标 */
.custom-icon {
    margin-right: 8px;
    color: var(--secondary-color);
}

/* 数据表格排序 */
.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.sort-asc::after {
    content: " ▲";
    color: var(--secondary-color);
}

.sort-desc::after {
    content: " ▼";
    color: var(--secondary-color);
}